package com.siteseat.crudeq.client;

import java.io.IOException;
import java.util.Collection;
import java.util.List;

public interface CommandConnection extends Connection  {


  /**
   * @param queueId
   * @param payload
   * @throws IOException
   * @throws ErrorResponseException
   */
  PublishResult click( int queueId, byte[] payload ) throws IOException;

  /**
   * @param queueId
   * @param payload
   * @throws IOException
   * @throws ErrorResponseException
   */
  PublishResult click( int queueId, String payload ) throws IOException;

  List<ClientMessage> history( Collection<QueueHistory> mids ) throws IOException;

  
}
